package edu.whu.rose.clock.kps.graph;

public class GraphEdge {

	private int source;
	private int destination;
	private GraphEdge nextEdgeFromSource;
	private GraphEdge nextEdgeToDestination;
	
	public GraphEdge(int source, int destination) {
		this(source, destination, null, null);
	}
	
	public GraphEdge(int source, int destination,
			GraphEdge nextEdgeFromSource,
			GraphEdge nextEdgeToDestination) {
		super();
		this.source = source;
		this.destination = destination;
		this.nextEdgeFromSource = nextEdgeFromSource;
		this.nextEdgeToDestination = nextEdgeToDestination;
	}

	public GraphEdge getNextEdgeFromSource() {
		return nextEdgeFromSource;
	}

	public void setNextEdgeFromSource(GraphEdge nextEdgeFromSource) {
		this.nextEdgeFromSource = nextEdgeFromSource;
	}

	public GraphEdge getNextEdgeToDestination() {
		return nextEdgeToDestination;
	}

	public void setNextEdgeToDestination(GraphEdge nextEdgeToDestination) {
		this.nextEdgeToDestination = nextEdgeToDestination;
	}

	public int getSource() {
		return source;
	}

	public int getDestination() {
		return destination;
	}

}
